import { reactive } from "vue";
import { Result } from "../githubTreeFinder";
import { getAllMessage } from "../githubTreeFinder";
export const data = reactive<Result[]>([]);
export const refreshData = (force = false) => {
    getAllMessage(force).then((res) => {
        const iconList = res.flatMap((i) => {
            return i.iconList;
        });
        data.push({ iconList, type: "all", url: "" }, ...res);
    });
};
